/**
 * Created by chemeng on 2017/3/29.
 */
var app = angular.module('loginApp', []);
app.controller("loginController", function ($http, $scope) {

    $scope.login = function () {
        debugger;
        $http({
            method: "POST",
            data: {
                username: $scope.username,
                password: $scope.password
            },
            url: "/rest/login"
        }).then(function (response) {
            console.log(response);
        });
    };
});